package com.atguigu.spzx.model.entity.product;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

/**
 * @author Mahone
 */
@Data
public class Category {
    @ExcelProperty("id")
    private Long id;
    @ExcelProperty("名称")
    private String name;
    @ExcelProperty("图片url")
    private String imageUrl;
    @ExcelProperty("上级id")
    private Long parentId;
    @ExcelProperty("状态")
    private Integer status;
    @ExcelProperty("排序")
    private Integer orderNum;
    private Boolean hasChildren = false;
    private Date createTime;
    private List<Category> children;
}
